package com.dayuan.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.dayuan.constant.AjaxMsg;
import com.dayuan.vo.ResultVo;
import com.dayuanit.pay.domain.PayType;
import com.dayuanit.pay.service.PayService;

@Controller
@RequestMapping("/pay")
public class PayController {

	@Resource
	private PayService payService;
	
	//支付方式
	@RequestMapping(value = "/payaddress.im", method = { RequestMethod.POST, RequestMethod.GET })
	@ResponseBody
	public ResultVo pay() {
		List<PayType> result = payService.listPayType();
		ResultVo resultVo = new ResultVo();
		resultVo.setData(result);
		resultVo.setCode(AjaxMsg.SUCCESS.getValue());
		return  resultVo;
		
		
	}
	
}
